﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _011_特性
{
    [AttributeUsage(AttributeTargets.Class)]    //表示该特性类可以应用到的程序结构有哪些 这里是Class
    sealed class MyTestAttribute:System.Attribute
    {
        public string Description { get; set; }

        public string VersionNumber { get; set; }

        public int ID { get; set; }

        public MyTestAttribute(string dec)
        {
            Description = dec;
        }
    }
}
